how to reverse list python

33

>>> xs = [0, 10, 20, 40]
>>> for i in reversed(xs):
...     print(i)

Comments

Submit
0 Comments